﻿using System;
using System.Collections.Generic;
using System.Text;

namespace JESAI.HttpRequestMonitor.Core.Abstracts
{
    /// <summary>
    /// 请求详细信息实体
    /// </summary>
    public interface IRequestDetailModel
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 请求ID
        /// </summary>
        public string RequestId { get; set; }

        /// <summary>
        /// Http 协议方案
        /// </summary>
        public string Scheme { get; set; }

        /// <summary>
        /// 查询字符串
        /// </summary>

        public string QueryString { get; set; }

        /// <summary>
        /// 请求头
        /// </summary>
        public string RequestHeader { get; set; }

        /// <summary>
        /// 会话Cookie
        /// </summary>
        public string Cookie { get; set; }

        /// <summary>
        /// 请求主体
        /// </summary>
        public string RequestBody { get; set; }

        /// <summary>
        /// 响应主体
        /// </summary>
        public string ResponseBody { get; set; }

        /// <summary>
        /// 错误消息
        /// </summary>
        public string ErrorMessage { get; set; }

        /// <summary>
        /// 错误堆栈
        /// </summary>
        public string ErrorStackTrace { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
